package com.qnvip.controller;

import com.qnvip.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author EricLin
 * @Date 2018-06-12 11:49
 */
@RestController
public class HiController {

    @Autowired
    private HelloService helloService;


    @GetMapping("/index")
    public String say11Hi(){
        return "hello";
    }

    @GetMapping("/hi")
    public String sayHi(){
        String idCard = "320621199403017916";
        return helloService.sayHi(idCard);
    }


    @GetMapping("/hi1")
    public String sayHi1(){
        String name="麦传皇1";
        String idCard="460200200005084438";
        String mobile="18069189554";
        String  purpose="12";
        String applyTime="2019-08-23 13:03:00";
        String queryReason="1";
        return helloService.loanApply(name, idCard, mobile, purpose, applyTime, queryReason);
    }
}
